package modelLayer;



public class SaleLine
{
	private static int index;
    private int id; 
    private double price;
    private int barcode;
    private int quantity;
    
    public SaleLine(int barcode, double price, int quantity){
    id = ++index;
    this.barcode = barcode;
    this.price = price;
    this.quantity= quantity;
    }
  
    public void setId(int id){this.id = id;}
    public int getId(){return id;}
    public void setPrice(double price){this.price = price;}
    public double getPrice(){return price;}
    public void setQuantity(int quantity){this.quantity = quantity;}
    public int getQuantity(){return quantity;}
    public int getBarcode() {return barcode;}
}
